package com.bayss.web.mock.annotation;

import com.bayss.web.mock.enums.MockDataType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * User: helen  xin.pang
 * Time: 2016/2/18.
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DataValue {

    String value() default "";

    /**
     * 返回的类型，默认obj
     *
     * @return
     */
    MockDataType type() default MockDataType.OBJECT;

    /**
     * 嵌套循环
     *
     * @return
     */
    int length() default 10;

}
